#include <stdint.h>
#include <stdio.h>
#include "SerializeBuf.h"


int main(int argc , char** argv)
{
    Remote::SerializeBuf buf;
    uint8_t data = 'a';
    buf.append_uint8(data);

    uint8_t* buffer = (uint8_t*)malloc(sizeof(uint8_t)*4);
    if(!buffer)
        return 0;

    buf.copy_to(buffer , sizeof(buffer));

    for(int i = 0; i< sizeof(buffer) ; i++)
    {
        printf("%c " , buffer[i]);
    }
    printf("\n");

    return 0;
}